package com.example.choupaiapp.main.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import com.contrarywind.view.WheelView;

/**
 * Created by ASUS on 2019/10/29.
 */

public class MyWheelView extends WheelView {
    public MyWheelView(Context context) {
        super(context);
    }

    public MyWheelView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent event) {
        getParent().requestDisallowInterceptTouchEvent(true);
        return super.dispatchTouchEvent(event);
    }
}
